

public class Phone {
    public String brand;
    public double price;
    public void call(){
        System.out.println("打电话");
    }
    public String call1(){
        return "打电话1";
    }
    public void sendMsg(String name,String text){
        System.out.println("给"+name+"发短信："+text);
    }
    //输出手机属性功能
    public void show(){
        System.out.println("品牌："+brand+"，价格："+price);
    }

}
